{include file='../header.htm'}
<table class="tb-table tb-mouse" cellpadding="3" cellspacing="1" style="margin: 10px auto;">
    <thead>
        <tr>
            <th colspan="10">管理员管理</th>
        </tr>
    </thead>
    <tbody>
        <tr class="bg-odd">
            <th>用户id</th>
            <th>用户名</th>
            <th>真实姓名</th>
            <th>所属角色</th>
            <th>添加时间</th>
            <th>最后登陆时间</th>
            <th>最后登陆ip</th>
            <th>登陆次数</th>
            <th>授权</th>
            <th>操作</th>
        </tr>
        {foreach $data as $item}
        <tr class="{cycle values='bg-even,bg-odd'}">
            <td>{$item.said}</td>
            <td>{$item.sa_user}</td>
            <td>{$item.real_name}</td>
            <td>{$group[$item['group_id']]}</td>
            <td>{if !empty($item['add_time'])}{$item.add_time|date_format}{/if}</td>
            <td>{if !empty($item['last_time'])}{$item.last_time|date_format}{/if}</td>
            <td>{$item.last_ip}</td>
            <td>{$item.logins}</td>
            <td><a href="admin/clear/id/{$item.said}">清理授权</a></td>
            <td>
                <a href="admin/add/id/{$item.said}">编辑</a>
                <a href="admin/delete/id/{$item.said}">删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{include file='../footer.htm' JS='common'}